package site.laodengtou.service;

import java.util.List;

import site.laodengtou.pojo.Question;
import site.laodengtou.pojo.QuestionVo;
import site.laodengtou.pojo.Student;
import site.laodengtou.pojo.Teacher;
import site.laodengtou.pojo.Works;
import site.laodengtou.pojo.resultquestion;

public interface TeacherService {

	/**
	 * @ 录入学生信息
	 */
	public void inputInformation(Student stu);
	
	/**
	 * 
	 * @param tea
	 * @return  老师登录
	 */
	public List<Teacher> tealogin(Teacher tea);
	
	/**
	 * 
	 * @param question
	 * @return  添加试题
	 */
	public int addItem(Question question);
	
	/***
	 * 
	 * @param works
	 * @return 发布考试
	 */
	public int releaseTest(Works works);
	
	/**
	 * @return 查询所有发布的考试
	 */
	
	public List<Works> selectExamination();
	
	/**
	 * 查询出某场考试的所有考生
	 * @return
	 */
	public List<Student> selectStudentById(int worksId);
	
	/** 
	 * @param ksh
	 * @param worksId
	 * @return  查询出某场考试的考生的考卷
	 */
	public List<QuestionVo> selectStupaper(String ksh,int worksId);
	
	/**
	 * @param rs
	 * @return 改试题
	 */
	public int changeTheTopic(resultquestion rs);
}
